package com.itany.corejava.code07_面向对象.继承;

/**
 * @author: 石小俊
 * @date: 2023年03月08日 9:33
 * @version: 1.0
 */
public class TestPerson {

    public static void main(String[] args) {
        Man man = new Man();
        man.setName("admin");
        man.setAge(30);
        man.setPersonId("321234199901021234");
        man.show();
        man.work();

        WoMan woMan = new WoMan();
        woMan.setName("alice");
        woMan.setAge(18);
        woMan.setPersonId("321238200501021234");
        woMan.show();
        woMan.shopping();
    }

}
